#include <QApplication>
#include "mainwindow.h"

using namespace std;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    return a.exec();
}

/* BUGS
 * file may be corrupted when resuming download
 */

/*
 *  IMPORTANT
 *  Check the response of the server on returned bytes range
 */

/*
 * use QString where unicode support is required
 * use QFile where it may contain QString
 * user standard header files if possible (c++11)
 */

// TO DO:
/*
 * pause button should pause immediately
 * save button to save current downloaded info to prevent downloading whole file again
 * on errors save information for resume before exit
 * display status code information
 * if partfile size (totalLength/nt) = 0 create only one thread
 */


// add help menu
/*
 * out file name
 * url encoding
 * configuration file format
 * preferences
 *
start all
stop all
individual thread :
start
stop
resume
resume support
*/
// organize code into small functions
